/**
 * Created by yjj on 2017/5/4.
 */
import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const batchAddLoadingListTrunkTask = (filters, id, params) => {
  return axios.post(API_NEW_VERSION + 'loading_list_route/' + id + '/loading_list_trunk_tasks', {
    filters: filters,
    typeIdList: params
  });
};

export const direct = (filters, id, params) => {
  return axios.post(API_NEW_VERSION + 'loading_list/' + id + '/direct', {
    filters: filters,
    typeIdList: params
  });
};

export const deleteLoadingListTrunkTask = (filters, id, params) => {
  return axios.delete(API_NEW_VERSION + 'loading_list/' + id + '/loading_list_trunk_tasks', {
    data: {
      filters: filters,
      typeIdList: params
    }
  });
};
